home *** CD-ROM | disk | FTP | other *** search
/ PCNet 1998 June / PCnet Haziran 1998.iso / Internet / Tools / ANJAVA10.ZIP / DATA1.CAB / Program_Executable_Files / Applet / voxel / voxel.txt < prev    next >
Encoding:
Text File  |  1998-04-23  |  5.3 KB  |  124 lines

  1.  
  2.            AnfyVoxel 2.2 - Copyright (C) by Fabio Ciucci 1997/98
  3.  
  4.  
  5. This applet can generate a lightsourced voxel landscape in realtime.
  6. Thanks to 6502/FR.
  7. Remember that are needed both voxel.class , Lware.class and anfy.class.
  8. You must upload these 3 .class files and insert the <applet> tag on your
  9. html document to add this applet to your page.
  10. The applet is interactive, in fact you can control it with the mouse.
  11. This applet is fully parametrized, so you can generate all kinds of tunnels
  12. you want. Here an example of what you have to write in the html (the
  13. things anfter the ; are comments with min-max values acceptet):
  14.  
  15.  
  16. <applet code="voxel.class" width=320 height=180> ; Name, Width, Height
  17. <param name=credits value="Applet by Fabio Ciucci (www.anfiteatro.it/java.html)">
  18. <param name=regcode value="NO">         ; Register code (if you have it)
  19. <param name=reglink value="NO">         ; URL where go optionally when clicked
  20. <param name=regnewframe value="YES">    ; Reglink opened in new frame?
  21. <param name=regframename value="_blank"> ; Name of new frame for reglink
  22. <param name=statusmsg value="Voxel applet">  ; Statusbar message
  23. <param name=res value="1">             ; resolution (1-8)
  24. <param name=shadow value="4">          ; Shadow factor
  25. <param name=roughness value="130">     ; Ground roughness (50..200)
  26. <param name=numpal value="2">          ; Color palette (1..27)
  27. <param name=backr value="0">           ; RED comp. of backg. color (0-255)
  28. <param name=backg value="0">           ; GREEN comp. of backg. color (0-255)
  29. <param name=backb value="60">          ; BLUE comp. of backg. color (0-255)
  30. <param name=textscroll value="NO">     ; File for scrolltext or "NO"
  31. <param name=textoffset value="140">       ; Txtscroll y offset
  32. <param name=textspeed value="1">          ; Txtscroll speed
  33. <param name=textfont value="Arial">       ; Txtscroll font name
  34. <param name=textbold value="NO">          ; Txtscroll bold ("YES" or "NO")
  35. <param name=textsize value="24">          ; Txtscroll font size
  36. <param name=textshadow value="YES">       ; Txtscroll shadow ("YES" or "NO")
  37. <param name=TextColR value="200">         ; Txtscroll color (red component)
  38. <param name=TextColG value="255">         ; Txtscroll color (green component)
  39. <param name=TextColB value="190">         ; Txtscroll color (blue component)
  40. <param name=TextSColR value="20">         ; Txtscroll shadow col. (red c.)
  41. <param name=TextSColG value="20">         ; Txtscroll shadow col. (green c.)
  42. <param name=TextSColB value="50">         ; Txtscroll shadow col. (blue c.)
  43. <param name=TextJumpAmp value="0">        ; Txtscroll jump aplitude
  44. <param name=TextJumpSpd value="0">        ; Txtscroll jump speed
  45. <param name=TextSineAmp value="0">        ; Txtscroll sineshape amplitude        
  46. <param name=TextSineSpd value="0">        ; Txtscroll sineshape movement
  47. <param name=TextSineAngle value="0">      ; Txtscroll sineangle / pixel  
  48. <param name=memdelay value="1000">        ; Memory deallocation delay
  49. <param name=priority value="3">           ; Task priority (1..10)
  50. <param name=fixnetscape value="NO">       ; Fix Netscape 3.0 bug ("YES","NO")
  51. <param name=MinSYNC value="10">           ; Min. milliseconds/frame for sync
  52. Sorry, your browser doesn't suppor Java.  ; Message for no java browsers.
  53. </applet>                                 ; End of applet tag
  54.  
  55.                              ---------
  56.  
  57.  
  58. Here detailed instructions about how to change parameters:
  59.  
  60.  
  61. The credits parameter can't be changed otherwise the applet will not work.
  62.  
  63. To activate the reg parameters read the shareware registration notes.
  64. In the "regcode" parameter you have to place the registration code you
  65. purchase from the author. If it is correct and the applet is run from the
  66. registered domain name, you can use "reglink" parameter, where you can specify
  67. an URL where bring user when the applet is clicked.
  68. If you set to "YES" regnewframe, you can specify a frame where load the
  69. reglink:
  70.  
  71. "_blank"  : To load the link in a new blank unnamed browser window.
  72. "_self"   : To load the link into the same window the applet occupies.
  73. "_parent" : To load the link into the immediate FRAMESET parent.
  74. "_top"    : To load the link into the top body of the window.
  75.  
  76. Otherwise the frame name, for example "myframe1".
  77.  
  78. The applet can be of any size. The res parameter determine the resolution:
  79. with res=1 pixels are small, but effect is slow, with res=8 pixels are too
  80. great but effect is faster. I think the best choices are 1-3.
  81. In fact, res is a sort of zoomer.
  82.  
  83. With the "shadow" parameter you can calibrate the light intensity: low
  84. values mean less shadows, high values mean high contrasts ligh-shadow.
  85.  
  86. With "roughness" you can change the roughness of the ground: low values
  87. makes soft desert dunes, high values makes tall mountains.
  88.  
  89. You can select the color palette, with "numpal" parameter:
  90.  
  91.  
  92. 1) red     -> blue
  93. 2) orange  -> green
  94. 3) green   -> blue
  95. 4) blue    -> green
  96. 5) green   -> red
  97. 6) blue    -> red
  98. 7) yellow
  99. 8) yellow  -> blue
  100. 9) violet
  101. 10) red
  102. 11) violet -> green
  103. 12) pink   -> green
  104. 13) blue
  105. 14) blue2
  106. 15) azzure
  107. 16) green
  108. 17) green2
  109. 18) gray
  110. 19) blue    -> yellow
  111. 20) yellow
  112. 21) azzure  -> red
  113. 22) green   -> violet
  114. 23) red
  115. 24) violet
  116. 25) gray
  117. 26) gray2
  118. 27) gray3
  119.  
  120. As you can check, there are enough palettes to simulate the moon ground,
  121. the mars ground, and so on.
  122.  
  123.  
  124.